@import url("./root.css");

body {
  margin: 0;
}

#app {
  min-height: 100vh;
  max-width: 100vw;
}


.full-modal {
  .ant-modal {
    max-width: 100%;
    top: 0;
    padding-bottom: 0;
    margin: 0;
  }

  .ant-modal-content {
    display: flex;
    flex-direction: column;
    height: calc(100vh);
  }

  .ant-modal-body {
    flex: 1;
  }
}

/* 渲染层样式 */
.ml-render-item {
  cursor: pointer;
  position: relative;
  padding: 2px;
  width: 100%;
  user-select: none;
  margin: 2px 0;
}

// 空白页
.ml-render-item .ant-form-item-control-input-content:empty {
  width: 200px;
  text-align: center;
}

.ml-render-item .ant-form-item-control-input-content:empty::before {
  content: "请将组件拖拽该区域";
}

.ml-hover-active {
  padding: 0;
  border: 2px dashed var(--primary-color);
}

.ml-active {
  padding: 0;
  border: 2px solid var(--primary-color);
}

.ml-tool {
  position: absolute;
  top: -24px;
  right: -00px;
  display: none;
}

.ml-active {
  .ml-tool {
    position: absolute;
    top: -24px;
    right: -2px;
    display: flex;

    svg {
      background: var(--primary-color);
      color: #fff;
      font-size: 24px;
      padding: 5px;
    }
  }
}

/* 渲染层样式end */

/* 配置模块样式 */
.ml-option-form {
  .ant-form-item {
    margin-bottom: 12px;
  }

  label {
    width: 100%;
  }
}

/* 图标点击效果 */
.ml-icon {
  cursor: pointer;
  user-select: none;
}

/* 标签配置 */
//  标签点击 
.ml-a-click {
  cursor: pointer;
  user-select: none;
}

.ml-a-danger {
  color: var(--error-color);
}

.ml-a-danger:hover {
  color: var(--error-color-hover);
}

/* 标签配置end */


/* 隐藏列表-分页 */
.ml-hide-pagination {
  .ant-list-pagination {
    display: none;
  }
}